#include<stdio.h>

int main(void)
{
	int n,paper=0;
	scanf("%d",&n);
	while(n>=100)
	{
		paper++;
		n-=100;
	}
	while(n>=50)
	{
		paper++;
		n-=50;
	}
	while(n>=20)
	{
		paper++;
		n-=20;
	}
	while(n>=10)
	{
		paper++;
		n-=10;
	}
	while(n>=5)
	{
		paper++;
		n-=5;
	}
	paper+=n;
	printf("%d",paper);
	
	return 0;
}
